package returnTypes;

public class PointNumber {


	private int number1, number2;
	
	public PointNumber()
	{
		number1=0;
		number2=0;
	}
	
	
	public PointNumber(int number1, int number2)
	{
		this.setNumber1(number1);
		this.setNumber2(number2);
	}
	
	public PointNumber(PointNumber pn)
	{
		this.setNumber1(pn.number1);
		this.setNumber2(pn.number2);
	}

	/**
	 * @param number1 the number1 to set
	 */
	public void setNumber1(int number1) {
		this.number1 = number1;
	}

	/**
	 * @return the number1
	 */
	public int getNumber1() {
		return number1;
	}

	/**
	 * @param number2 the number2 to set
	 */
	public void setNumber2(int number2) {
		this.number2 = number2;
	}

	/**
	 * @return the number2
	 */
	public int getNumber2() {
		return number2;
	}
	
	public boolean isNull(){
		if ((number1 == 0) && (number2 == 0)) return true;
		return false;
	}
	
	public boolean notNull(){
		if ((number1 == 0) && (number2 == 0)) return false;
		return true;
	}
	
}
